package org.example.spring.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.spring.domain.pojo.OrderDetail;

import java.util.ArrayList;

@Mapper
public interface OrderDetailMapper {
    @Select("SELECT * FROM order_details WHERE order_id = #{orderId}")
    ArrayList<OrderDetail> getOrderDetailByOrderId(Integer orderId);

    void addOrderDetail(ArrayList<OrderDetail> orderDetailList);
}
